package com.tanhua.model.vo;

import com.tanhua.model.domain.QuestionOption;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author げっしょく
 * @date 2021/11/9
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OptionsVo {
    private String id;
    private String option;

    public static OptionsVo init(QuestionOption questionOption) {
        OptionsVo optionsVo = new OptionsVo();
        optionsVo.setId(questionOption.getId().toString());
        optionsVo.setOption(questionOption.getOption());
        return optionsVo;
    }
}
